"""错误和异常"""

class UMQException(BaseException):
    """UMQ 异常基类"""
    pass

class MQTTException(UMQException):
    """MQTT 协议中的异常"""
    pass

class CodecException(UMQException):
    """数据解码和编码异常"""
    pass

class NoDataException(UMQException):
    """没有数据异常"""
    pass
